const topLeftBox = document.querySelector('.topLeft')
let str = ``
const xhr = new XMLHttpRequest()
xhr.open('GET','/hh')
xhr.onload = function () {
  const res = JSON.parse(xhr.responseText)
  console.log(res)
  res.data[1003].forEach(item => {
    str += `<li><a href='${ item.widgetContent.link}'>${item.widgetContent.text}</a></li>`
  });
  topLeftBox.innerHTML = str
}
xhr.send()
    

